package com.zhoug.common.share;

/**
 * 微信等客服端分享信息
 * @Author: 35574
 * @Date: 2022/6/23
 * @Description:
 */
class ClientInfo {
     private String packageName;
     private String shareClassName;

    private ClientInfo(String packageName, String shareClassName) {
        this.packageName = packageName;
        this.shareClassName = shareClassName;
    }

    public String getPackageName() {
        return packageName;
    }

    public String getShareClassName() {
        return shareClassName;
    }

    public static ClientInfo getClientInfo(ClientType clientType){
        switch (clientType){
            case Wechat:
                return new ClientInfo("com.tencent.mm","com.tencent.mm.ui.tools.ShareImgUI");
            case WechatMoments:
                return new ClientInfo("com.tencent.mm","com.tencent.mm.ui.tools.ShareToTimeLineUI");
            case QQ:
                return new ClientInfo("com.tencent.mobileqq","com.tencent.mobileqq.activity.JumpActivity");
            case QZone:
                return new ClientInfo("com.qzone","com.qzonex.module.operation.ui.QZonePublishMoodActivity");
            case SinaWeibo:
                return new ClientInfo("com.sina.weibo","com.sina.weibo.composerinde.ComposerDispatchActivity");
        }
        return null;
    }

}
